﻿#include"test.h"
#include<QApplication>
#include"XQRCode.h"
#include"XQGraphicsViewWidget.h"
void QRCodeTest()
{
    auto view=new XQGraphicsViewWidget ;
    QObject::connect(qApp,&QApplication::aboutToQuit,view,&QObject::deleteLater);
    view->resize(500, 500);
    view->setPixmap("猫哥出手，必属精品", XQRCode::to_Pixmap_white("猫哥出手，必属精品", 10));
    view->show();
}

